package cn.iocoder.yudao.module.agri.controller.admin.farmrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;


/**
 * 农事记录 Excel VO
 *
 * @author 广东小蜂
 */
@Data
public class FarmRecordExcelVO {

    @ExcelProperty("自增编号")
    private Long id;

    @ExcelProperty("种养批次")
    private Long planId;

    @ExcelProperty(value = "农事类型", converter = DictConvert.class)
    @DictFormat("agri_farming_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer farmingType;

    @ExcelProperty("农事日期")
    private LocalDateTime farmingDate;

    @ExcelProperty("农事内容")
    private String farming;

    @ExcelProperty("作业数量")
    private Integer achievement;

    @ExcelProperty(value = "作业数量单位（株、棵、亩）", converter = DictConvert.class)
    @DictFormat("agri_crop_uint") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private String unit;

    @ExcelProperty("农资及用量")
    private String materials;

    @ExcelProperty("总开销")
    private BigDecimal amount;

    @ExcelProperty("负责人")
    private String overseer;

    @ExcelProperty("备注")
    private String remark;

}
